-
Notifications
You must be signed in to change notification settings - Fork 2
chore: sync with module template #76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThis set of changes updates three GitHub Actions workflow files. In the lint workflow, the trigger event is switched from Possibly related PRs
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (3)
🔇 Additional comments (5)
✨ Finishing Touches🧪 Generate Unit Tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
@Gowiem agh this is going to require an admin merge because of the chicken and egg problem with hte |
.github/workflows/trunk-upgrade.yaml
Outdated
echo "Waiting for required status checks to pass on PR #$PR_NUMBER..." | ||
while true; do | ||
CHECKS_JSON=$(gh pr checks "$PR_NUMBER" --required --json state,bucket) | ||
echo "Current checks status: $CHECKS_JSON" | ||
|
||
if echo "$CHECKS_JSON" | jq -e '.[] | select(.bucket=="fail")' > /dev/null; then | ||
echo "One or more required checks have failed. Exiting..." | ||
exit 1 | ||
fi | ||
|
||
FAILED_OR_PENDING_CHECKS=$(echo "$CHECKS_JSON" | jq '[.[] | select(.state!="SUCCESS" or .bucket!="pass")] | length') | ||
if [ "$FAILED_OR_PENDING_CHECKS" -eq 0 ]; then | ||
echo "All required checks passed. Merging PR #$PR_NUMBER..." | ||
gh pr merge "$PR_NUMBER" --squash --delete-branch --admin | ||
break | ||
else | ||
echo "Some required checks are still running or pending. Retrying in 30s..." | ||
sleep 30 | ||
fi | ||
done | ||
gh pr merge "$PR_NUMBER" --squash --auto --delete-branch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think @gberenice wanted to keep this... but we'll let her weigh in tomorrow. We can revert if needed...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep good call out. Looking at her PR, she wrote that she'll propagate it to the module template repository afterwards: #71.
I've made this PR simply to just update the release-please.yaml file to avoid any other conflicts.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bf95a06
to
23e626d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢
Use our Taskfile to sync our
.github
files to be consistent with the module template repository workflowsThis will address the pending checks here: #75
Summary by CodeRabbit
pull_request_target
trigger and injectGITHUB_TOKEN
for improved linter support.